<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>织梦模板收银台</title>
</head>
<style type="text/css">
	html,body,input {
		
		height:auto;
		padding:0;
		margin:0;
		font-family:"微软雅黑";
		background-color:#fff
	}
	.paycontent {
		width:100%;
		background-color:#fff;		
	}
	.paytitle{ font-size:20px; font-weight:800; margin:30px 0 20px 10px;}
	.element {
		margin:0 auto 20px;
		height:30px;
		font-size:15px;
		line-height:30px;
	}
	.element label{
		float:left;
		width:95px;
		line-height:26px;
		text-align:right;
		margin-right:10px;
	}
	.element .ipt {
		width:150px;
		height:24px;
		font-size:15px;
		color:#06c;
		border:1px solid #ddd;
		 padding-left:10px;
		 float:left;
	}
	.element span.ipt{ border:none;white-space:nowrap; width:360px; overflow:hidden;text-overflow: ellipsis;}
	.element em{ font-size:12px; color:#f60;}
	.element b{ color:red}
	.alisubmit {
		width: 160px;
		height:40px;
		display:block;
		margin-left:105px;
		border:0;
		background-color:#06c;
		border: 1px solid #03c;
		font-size:16px;
		color:#FFF;
		cursor:pointer;
	}
	#tips{ margin:20px 10px; color:red}
</style>
<body>
<script>
    function paydone() {
		var email = document.getElementById("email").value;
		var emailnum = /^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/;
		if(emailnum.test(email)){
		var x = document.getElementById("paybox");
		var y = document.getElementById("tips");
			x.style.display="none";
			y.style.display="block";
			return true;
			}else{
				alert ("请填写正确的邮箱");
				payform.email.focus();
				return false;
			}
    }
	
</script>
	<div class="paycontent">
    <div id="paybox">
		<form action="buy_action_mb.php" class="alipayform" method="post" onSubmit="return paydone()" name="payform" target="_blank">
			<input type="hidden" name="product" value="mb" />
			<input name="arcid" type="hidden" value="<?php echo $arcid; ?>">
			<input name="title" type="hidden" value="<?php echo $title; ?>">
			<input name="money" type="hidden" value="<?php echo $price; ?>">
			<input name="umid" type="hidden" value="<?php echo $umid; ?>">
			<div class="paytitle">创建整合后台订单 </div>
			<div class="element"><label>商品名称:</label><span class="ipt"><?php echo $title; ?></span></div>
			<div class="element"><label>付款金额:</label><input class="ipt" type="text" id="money"  value="600<?php echo $price; ?>" readonly> <em>元</em></div>
			<div class="element"><label>您的Email:</label><input class="ipt" id="email" type="text" name="email" value="<?php echo $email; ?>"> <em>请填写，方便发货</em></div>
			<div class="element"><label>您的QQ:</label><input class="ipt" id="qq" type="text" name="qq" value="<?php echo $qq; ?>"></div>
			<div class="element"><label>您的留言:</label><textarea rows="1" cols="40" name="content"></textarea></div>
			<div class="element"><label>是否二次销售</label><input type="radio" name="sell" value='1' checked>是<input type="radio" name="sell" value="2">否</div>
			<div class="element"><input type="submit" class="alisubmit"  value ="确认支付" ></div>
		</form>
        </div>
		 <div id="tips" style="display:none"><b>订单支付成功后请等待制作完成，支付失败的订单不会发货！<br />如有疑问请联系织梦模板客服QQ:6009709</b></div>
	</div>
</body>
</html>
